package util;

/**
 * This is the file stores protocols.
 */
public class IProtocol {
    /**Log in to the broker*/
	public static final String loginMsg = "LOGIN";
	/** max swap words supported */
	public static final int MaxSwapWords = 5;
	
	/** Swap request structure
	 *  {N, offerTypes[], offerWords[], requestTypes[], requestWords[]} */
	public static final String requestSwapMsg = "REQUEST_SWAP";
	
	/** asking client for matching swap */
	public static final String matchSwapMsg = "MATCH_SWAP";
	
	/** match denied */
	public static final String denySwapMsg = "DENY_SWAP";
	
	/** confirm a swap*/
	public static final String confirmSwapMsg = "CONFIRM_SWAP";
	
	/** error msg  */
	public static final String errorMsg = "ERROR_MESSAGE";
	
	/** separator for fields */
    public static final String separator = ":";
	
	/** responses */
	public static final String okStatus = "OK";
}
